﻿@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
@model TireStore.Models.AdminResetModel


@*@Html.PasswordFor(m => m.Password, new { id = "txtPassWord", placeholder = "Mật khẩu" })
<input type="submit" name="Btn_Login" value="Thay Đổi" id="Btn_Login" class="btn btn-block login-btn" />*@

@using (Html.BeginForm("Edit", "Admin", FormMethod.Post, new { enctype = "multipart/form-data", id = "editForm" }))
{
    <div id="Breadcrumb" class="Block Breadcrumb ui-widget-content ui-corner-top ui-corner-bottom">
        <ul>
            <li class='SecondLast'><a href='../Admin/Index'><i class="icon-home" style="font-size: 14px;"></i>Trang chủ</a></li>
            <li class='Last'><span>Tài khoản quản trị</span></li>
        </ul>
    </div>
    <div style="clear: both;"></div>

                        
    <div id="cph_Main_ContentPane">
        <div class="widget">
            <div class="widget-title">
                <h4>
                    <i class="icon-reorder"></i>&nbsp;Thay đổi mật khẩu</h4>

                <div class="ui-widget-content ui-corner-top ui-corner-bottom">
                    <div id="toolbox">

                        <div style="float: right;" class="toolbox-content">

                            <table class="toolbar">
                                <tr>

                                    <td align="center">
                                        <button type="submit" class="toolbar btn btn-info"><i class="icon-ok"></i>&nbsp; Thay đổi mật khẩu</button>
                                        @*<a id="cph_Main_ctl00_toolbox_rptAction_lbtAction_0"
                                           title="Thay đổi mật khẩu" class="toolbar btn btn-info" href="javascript:{}"><i class="icon-ok"></i>&nbsp;
                                            Thay đổi mật khẩu</a>*@
                                    </td>

                                </tr>
                            </table>

                        </div>
                    </div>
                </div>
                <div id="hiddenToolBarScroll" class="scrollBox hidden">

                    <h4>
                        <i class="icon-reorder"></i>&nbsp;Thay đổi mật khẩu</h4>
                    <div class="FloatMenuBar">

                        <div class="ui-widget-content ui-corner-top ui-corner-bottom">
                            <div id="Div1">

                                <div style="float: right;" class="toolbox-content">

                                    <table class="toolbar">
                                        <tr>

                                            <td align="center">
                                                <button id="btnReset" type="submit" title="Thay đổi mật khẩu" class="btn btn-info"><i class="icon-ok"></i>&nbsp;
                                                    Thay đổi mật khẩu</button>
                                            </td>

                                        </tr>
                                    </table>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="widget-body">


                <div id="notification_divNotice" style="padding-top: 10px;">
                    @Html.HiddenFor(m => m.Id)
                </div>
                <table cellpadding="0" cellspacing="1" class="admintable" width="100%">

                    <tr>
                        <td class="key">Tên đăng nhập <span class="Required"></span>
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.Username, new { id = "txtUserName", maxlength = 50, style = "width:155px", @readonly = "readonly" })
                        </td>
                    </tr>
                    <tr>
                        <td class="key">Mật khẩu cũ <span class="Required">*</span>
                        </td>
                        <td>
                            @Html.PasswordFor(m => m.Password, new { id = "txtPassWord", maxlength = 50, style = "width:155px" })
                            <span style="color: red;font-style: italic"> @Html.ValidationMessage("Password") </span>
                            @*<input name="ctl00$cph_Main$ctl00$ctl00$txtOldPassword" type="password" maxlength="30" id="cph_Main_ctl00_ctl00_txtOldPassword" class="TextInput" style="width:155px;" />*@
                        </td>
                        <td>
                            @*<span style="color: red">@ViewBag.Err</span>*@
                        </td>
                    </tr>
                    <tr>
                        <td class="key">Mật khẩu mới  <span class="Required">*</span>
                        </td>
                        <td>
                            @Html.PasswordFor(m => m.NewPassword, new { id = "txtPassWord", maxlength = 50, style = "width:155px" })
                            <span style="color: red;font-style: italic"> @Html.ValidationMessage("NewPassword") </span>
                            @*<input name="txtNewPassword" type="password" maxlength="30" id="txtNewPassword" class="TextInput" style="width: 155px;" />
                            <span id="cph_Main_ctl00_ctl00_vldNewPassword" class="NormalRed" style="color: Brown; visibility: hidden;">Nhập mật khẩu mới</span>*@
                        </td>
                    </tr>
                    <tr>
                        <td class="key">Xác nhận mật khẩu mới <span class="Required">*</span>
                        </td>
                        <td>
                            @Html.PasswordFor(m => m.ConfirmPassword, new { id = "txtPassWord", maxlength = 50, style = "width:155px" })
                            <span style="color: red;font-style: italic"> @Html.ValidationMessage("ConfirmPassword") </span>
                            @*<input name="txtConfirm" type="password" maxlength="30" id="txtConfirm" class="TextInput" style="width: 155px;" />*@
                        </td>
                    </tr>
                </table>

            </div>
        </div>
    </div>
    
    <script src="~/Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
        
}